Agent Settings
data class AgentSettings<TContext>(val instructions: String? = null, val model: LanguageModel? = null, val tools: ToolSet<TContext>? = null, val activeTools: List<String>? = null, val providerOptions: Map<String, JsonElement>? = null, val temperature: Float? = null, val topP: Float? = null, val topK: Int? = null, val maxOutputTokens: Int? = null, val stopSequences: List<String>? = null, val seed: Int? = null, val presencePenalty: Float? = null, val frequencyPenalty: Float? = null, val responseFormat: ResponseFormat? = null)
Returned from prepareCall. Any non-null field overrides the agent default for this invocation only.
Sampler params (temperature, topP, topK, maxOutputTokens, stopSequences, seed) mirror Vercel AI SDK v6's CallSettings — same vocabulary that already exists on LanguageModelCallParams and is honored by every provider implementation. Resolution chain inside the agent loop is StepSettings ?: AgentSettings ?: agent-default ?: provider-default.
Constructors
Link copied to clipboard
constructor(instructions: String? = null, model: LanguageModel? = null, tools: ToolSet<TContext>? = null, activeTools: List<String>? = null, providerOptions: Map<String, JsonElement>? = null, temperature: Float? = null, topP: Float? = null, topK: Int? = null, maxOutputTokens: Int? = null, stopSequences: List<String>? = null, seed: Int? = null, presencePenalty: Float? = null, frequencyPenalty: Float? = null, responseFormat: ResponseFormat? = null)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Penalty for repeating already-emitted tokens (presence) and for tokens proportional to their previous frequency (frequency). Mirrors v6's CallSettings (per historical parity gap #3 + Phase 4C #21). Each provider applies them differently; some accept both, some only one, some neither. Null = provider default.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard